<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>我的</title>
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<link rel="stylesheet" type="text/css" href="../css/api.css" />
		<link href="../css/myhome/style.css" rel="stylesheet" type="text/css" />
		<style>
			.body {
				height: 100%
			}
		</style>
	</head>
	<body>
		<section class="jq22-flexView">
			<section class="jq22-scrollView">
				<div class="jq22-mine-box">
					<div class="jq22-flex jq22-flexbg">
						<div class="jq22-user-img">
							<img src="../image/myhome/tx.png" alt="">
						</div>
						<div class="jq22-flex-box" >
							<h2 id="name">韩伟华</h2>
							<br>
						<!--	<span>所见项目:&nbsp;&nbsp;&nbsp;</span><span v-for="(l,index) in ld" v-text="l.projectName" style="margin-right: 10px"></span>-->
						</div>
						<!--<div class="jq22-arrow" onclick="openDetail('personal_window.html')">
							<span>个人信息</span>
						</div>-->
					</div>
					<!--<div class="jq22-flex jq22-flex-one">
						<div class="jq22-flex-box">
							<div class="jq22-mine-cell">
								<h2>我的公司</h2>
								<p>
									临沂城投思索信息技术有限公司
								</p>
							</div>
						</div>
						<div class="jq22-flex-box">
							<div class="jq22-mine-cell jq22-mine-cell-one">
								<h2>代办列表</h2>
								<p>
									你的代办事项
								</p>
							</div>
						</div>
					</div>-->
					<div class="divHeight"></div>
					<div class="jq22-mine-list">
					
						<div class="divHeight"></div>
						<a href="javascript:;" class="jq22-flex b-line">
						<div class="jq22-cou-img">
							<img src="../image/myhome/icon-item-002.png" alt="">
						</div>
					<!--	<div class="jq22-flex-box">
							<p>
								我的
							</p>
						</div>
						<div class="jq22-arrow">
							<span>xx</span>
						</div> </a>
						<a href="javascript:;" class="jq22-flex b-line">
						<div class="jq22-cou-img">
							<img src="../image/myhome/icon-item-003.png" alt="">
						</div>-->
					<!--	<div class="jq22-flex-box">
							<p>
								我的
							</p>
						</div>
						<div class="jq22-arrow">
							<span></span>
						</div> </a>
						<a href="javascript:;" class="jq22-flex b-line">
						<div class="jq22-cou-img">
							<img src="../image/myhome/icon-item-004.png" alt="">
						</div>
						<div class="jq22-flex-box">
							<p>
								我的
							</p>
						</div>
						<div class="jq22-arrow">
							<span></span>
						</div> </a>
						<a href="javascript:;" class="jq22-flex b-line">
						<div class="jq22-cou-img">
							<img src="../image/myhome/icon-item-005.png" alt="">
						</div>
						<div class="jq22-flex-box">
							<p>
								我的
							</p>
						</div>
						<div class="jq22-arrow">
							<span></span>
						</div> </a>
						<div class="divHeight"></div>
						<a href="javascript:;" class="jq22-flex b-line">
						<div class="jq22-cou-img">
							<img src="../image/myhome/icon-item-006.png" alt="">
						</div>
						<div class="jq22-flex-box">
							<p>
								我的
							</p>
						</div>
						<div class="jq22-arrow">
							<span></span>
						</div> </a>
						<a href="javascript:;" class="jq22-flex b-line">
						<div class="jq22-cou-img">
							<img src="../image/myhome/icon-item-007.png" alt="">
						</div>-->
						<div class="jq22-flex-box">
							<p>
								所见项目
							</p>
						</div>
						<div class="jq22-arrow" id="ld">
							<span style="font-size: 10px;margin-left: 5px"  v-for="(l,index) in ld" v-text="l.projectName"></span>
						</div> </a>
						<a href="javascript:;" class="jq22-flex b-line" id="tuichu">
						<div class="jq22-cou-img">
							<img src="../image/myhome/icon-item-008.png" alt="">
						</div>
						<div class="jq22-flex-box">
							<p>
								退出系统
							</p>
						</div>
						<div class="jq22-arrow">
							<span></span>
						</div> </a>
					</div>
				</div>
			</section>
		</section>
	</body>
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript" src="../script/common.js"></script>
	<script type="text/javascript" src="../script/vue.js"></script>
	<script type="text/javascript" src="../script/jquery-1.11.0.min.js"></script>
	<script type="text/javascript">
		apiready = function() {
			//項目id
			var departid = $api.getStorage('selectpor').id
			//項目名称
			var departname = $api.getStorage('selectpor');
			//用户信息
			var user = $api.getStorage('userSession').data;
			////企业id
			var qiyeid = $api.getStorage('userSession').data.depart.id;
			
			$("#name").text(user.realName);
			
			
//			$("#divname").text(user.realName);
//			$("#mobile").text(user.mobile);
			var arr = [];
			for (var i = 0; i < user.departProjects.length; i++) {
				arr.push(user.departProjects[i]);
			}
			var apps = new Vue({
				el : '#ld',
				data : {
					ld : arr
				}
			})
				
		};
		
		$api.addEvt($api.dom('#tuichu'), 'click', function() {
		api.closeWidget({
			id : 'A6026560903322', //这里是应用id
			retData : {
				name : 'closeWidget'
			},
			animation : {
				type : 'flip',
				subType : 'from_bottom',
				duration : 500
			}
		});
	})
		
	</script>
</html>
